結果
問題 | No.624 Santa Claus and The Last Dungeon |
ユーザー |
![]() |
提出日時 | 2017-12-13 20:22:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 567 bytes |
コンパイル時間 | 736 ms |
コンパイル使用メモリ | 67,476 KB |
実行使用メモリ | 25,820 KB |
平均クエリ数 | 6786.72 |
最終ジャッジ日時 | 2024-07-16 14:55:43 |
合計ジャッジ時間 | 16,055 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 36 |
ソースコード
#include <iostream> #include <string> using namespace std; int Q, a[109], r[109]; int main() { cin >> Q; for (int i = 0; i < 100; i++) { for (int j = 0; j < 100; j++) { if (a[j] != 0)continue; for (int k = 0; k < 100; k++) { if (k)cout << " "; int L = (i + 1) % 100; string S = to_string(L); if (S.size() == 1)S = "0" + S; string T = to_string(i); if (T.size() == 1)T = "0" + T; if (k == j)cout << T; else cout << S; } cout << endl; int V1, V2, V3; cin >> V1 >> V2 >> V3; if (V3 == 2) { a[j] = i; break; } } } return 0; }