結果
問題 | No.84 悪の算盤 |
ユーザー |
|
提出日時 | 2014-12-06 23:12:08 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 158 bytes |
コンパイル時間 | 1,383 ms |
コンパイル使用メモリ | 133,032 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 01:43:39 |
合計ジャッジ時間 | 1,970 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
import std.stdio;void main() {ulong r, c;readf("%d %d\n", &r, &c);long tmp = r*c;if(r==c)writeln(tmp/4+tmp%2-1);elsewriteln(tmp/2+tmp%2-1);}