結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-07-18 20:54:04 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 68 ms / 2,000 ms |
| コード長 | 214 bytes |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 22,784 KB |
| 実行使用メモリ | 25,448 KB |
| 平均クエリ数 | 309.17 |
| 最終ジャッジ日時 | 2024-07-17 01:19:04 |
| 合計ジャッジ時間 | 1,289 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main(){
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%s",S);
| ~~~~~^~~~~~~~
ソースコード
#include<stdio.h>
#include<string.h>
main(){
for(int i = 0;i <= 999;i++){
printf("%03d\n",i);
fflush(0);
char S[9];
scanf("%s",S);
if(!strcmp(S,"unlocked"))break;
}
}
Bantako