結果

問題 No.692 square1001 and Permutation 1
ユーザー Maeda
提出日時 2025-03-11 11:39:51
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 24,576 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-11 11:39:53
合計ジャッジ時間 1,165 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:17: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
    5 |         scanf("%d",&n);
      |                ~^  ~~
      |                 |  |
      |                 |  long long int *
      |                 int *
      |                %lld
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d",&n);
      |         ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void){
	long long int n = 0;
	scanf("%d",&n);
	if(n == 1 ){
		printf("square1001");
	}else{
		printf("Petr");
	}
}
0