結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
sasa
|
| 提出日時 | 2025-03-07 17:05:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 261 bytes |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 27,648 KB |
| 実行使用メモリ | 33,504 KB |
| 最終ジャッジ日時 | 2025-03-07 17:05:23 |
| 合計ジャッジ時間 | 7,386 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:38: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%s",key);
| ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
char key[10];
for(int i = 0;i < 10;i++){
for(int j = 0;j < 10;j++){
for(int k = 0;k < 10;k++){
printf("%d%d%d",i,j,k);
fflush(stdout);
scanf("%s",key);
if(key[0] == 'u'){
return 0;
}
}
}
}
}
sasa