結果
| 問題 |
No.5003 物理好きクリッカー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-09 23:38:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 328 ms / 10,000 ms |
| コード長 | 567 bytes |
| コンパイル時間 | 1,393 ms |
| 実行使用メモリ | 21,984 KB |
| スコア | 3,901,742 |
| 平均クエリ数 | 10000.00 |
| 最終ジャッジ日時 | 2021-07-19 09:17:43 |
| 合計ジャッジ時間 | 14,445 ms |
|
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 |
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内:
main.cpp:21:17: 警告: ‘i’ はこの関数内初期化されずに使用されるかもしれません [-Wmaybe-uninitialized]
21 | for (int i; i < N; i++) {
| ~~^~~
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define sorted(a) sort(a.begin(), a.end());
typedef long long unsigned int ll;
const long mod = 1e9 + 7;
int main(void) {
#ifdef DEBUG
freopen("input.txt", "r", stdin);
#endif
ios_base::sync_with_stdio(false);
cin.tie(0);
int N;
cin >> N;
string S;
cin >> S;
string ans;
for (int i; i < N; i++) {
if (i == 2000) {
cout << "buy lily" << endl;
} else if (i == 9999) {
cout << "sel lily" << endl;
} else {
cout << "click" << endl;
}
cin >> ans;
}
return 0;
}