結果
問題 | No.692 square1001 and Permutation 1 |
ユーザー | tetsu |
提出日時 | 2018-06-08 22:24:57 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 1,354 ms |
コンパイル使用メモリ | 162,428 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-12 23:53:13 |
合計ジャッジ時間 | 2,123 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | WA | - |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 2 ms
4,376 KB |
testcase_04 | AC | 2 ms
4,380 KB |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
コンパイルメッセージ
main.cpp: 関数 ‘int main()’ 内: main.cpp:8:3: 警告: ‘n’ is used uninitialized [-Wuninitialized] 8 | if(n==1) cout << "square1001" << endl; | ^~ main.cpp:7:7: 備考: ‘n’ はここで定義されています 7 | int n; | ^
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) int main() { int n; if(n==1) cout << "square1001" << endl; else cout << "Petr" << endl; return 0; }