사뿐하게 AC
어려운 문제인줄 알았는데 아니었구만 :)
#includeusing namespace std; int main() { int n, m, c; int temp; cin >> n >> m >> c; while( (n != 0) || (m != 0) || (c != 0) ) { temp = (n - 7) * (m - 7); if( (temp % 2 == 1) && (c == 1) ) { cout << temp / 2 + c << endl; } else { cout << temp / 2 << endl; } cin >> n >> m >> c; } return 0; }
'Solutions > Mr.K's Solution' 카테고리의 다른 글
PKU 3074. Sudoku. [판정:TLE] (1) | 2011.08.12 |
---|---|
PKU 3132. Sum of Different Primes. [판정:TLE] (0) | 2011.03.23 |
PKU 2181. Jumping Cows. [판정:AC] (3) | 2011.03.16 |
PKU 2291. Rotten Ropes. [판정:AC] (0) | 2011.03.11 |
PKU 3032. Card Trick. [판정:AC] (0) | 2010.12.31 |