結果

問題 No.304 鍵(1)
ユーザー yamaken1343yamaken1343
提出日時 2015-12-03 21:45:38
言語 C90
(gcc 12.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 274 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 20,736 KB
実行使用メモリ 39,888 KB
最終ジャッジ日時 2024-07-16 21:58:49
合計ジャッジ時間 6,545 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%s",a);
      |         ^~~~~~~~~~~~~
main.c:15:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |                 scanf("%s",a);
      |                 ^~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#include<string.h>
int main(void){
	int i=0;
	char a[10];
	//printf("000\n");
	scanf("%s",a);
	while(strcmp(a,"unlocked") != 0){
		if(i<10){
			printf("00");
		}else if(i<100){
			printf("0");
		}
		printf("%d\n",i);
		scanf("%s",a);
		i++;
	}
	return 0;
}
0