結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
Bantako
|
| 提出日時 | 2017-07-18 20:51:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 195 bytes |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 22,656 KB |
| 実行使用メモリ | 40,140 KB |
| 最終ジャッジ日時 | 2024-07-17 01:19:15 |
| 合計ジャッジ時間 | 6,531 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 5 |
コンパイルメッセージ
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:7:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%s",S);
| ~~~~~^~~~~~~~
ソースコード
#include<stdio.h>
#include<string.h>
main(){
for(int i = 0;i <= 999;i++){
printf("%03d\n",i);
char S[9];
scanf("%s",S);
if(!strcmp(S,"unlocked"))break;
}
}
Bantako