【CodinGame】趣味算法 CLASH OF CODE - 20240724
创始人
2024-12-18 00:35:08
0

在这里插入图片描述
在这里插入图片描述

import sys import math  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  n = int(input()) for i in range(n):     t, c = [int(j) for j in input().split()]     if c>14 or t<=0 or t>101:         print("GLaDOS you filthy liar!")     else:         print("That's a cake!")     # print("That's a cake! or GLaDOS you filthy liar!")  


在这里插入图片描述

import sys import math  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  x, y = [int(i) for i in input().split()] n = int(input()) for i in range(n):     inputs = input().split()     _dir = inputs[0]     dist = int(inputs[1])     if _dir == 'N':         y += dist     elif _dir == 'S':         y -= dist     elif _dir == 'E':         x += dist     elif _dir == 'W':         x -= dist  print(x,y)  


在这里插入图片描述
在这里插入图片描述

import sys import math from math import log2  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  n = int(input())  if log2(n) == int(log2(n)):     print(int(log2(n))) else:     print(-1)   


在这里插入图片描述

import sys import math  # Auto-generated code below aims at helping you parse # the standard input according to the problem statement.  problem = input()    if eval(problem.replace('?', '+').replace('=', '==')):     print("+") if eval(problem.replace('?', '-').replace('=', '==')):     print("-") if eval(problem.replace('?', '*').replace('=', '==')):     print("*") if eval(problem.replace('?', '/').replace('=', '==')):     print("/") 

eval不安全,看情况使用

END

相关内容

热门资讯

透视中牌率"wepo... 透视中牌率"wepoker黑侠辅助器"一贯是有挂(透视)曝光教程(有挂详情)1、完成wepoker黑...
透视透视挂!wepoker免费... 透视透视挂!wepoker免费透视脚本,其实真的有挂(透视)插件教程(有挂细节);1、wepoker...
辅助透视!aapoker破解侠... 辅助透视!aapoker破解侠是真的吗(透视)ai插件(其实是真的有挂)1、点击下载安装,aapok...
透视最新(WEPOKER)we... 透视最新(WEPOKER)wepoker辅助器软件下载(透视)原来是有挂(AI教程)进入游戏-大厅左...
透视透视"wejok... 透视透视"wejoker辅助软件"竟然有挂(透视)存在挂教程(有挂黑科技);1、打开软件启动之后找到...
透视苹果版!德普辅助软件,本然... 透视苹果版!德普辅助软件,本然存在有挂(透视)透明挂教程(有挂教程)1、上手简单,内置详细流程视频教...
透视透视(WEPOKER)we... 透视透视(WEPOKER)wepoker插件程序激活码(透视)一直真的是有挂(教你攻略)1.wepo...
透视规律!aapoker辅助插... 透视规律!aapoker辅助插件工具(透视)透视方法(总是真的有挂);1、打开软件启动之后找到中间准...
透视了解"wepok... 透视了解"wepoker透视脚本下载"果然是真的有挂(透视)安装教程(有挂揭秘)1、wepoker透...
透视好友(WEPOKER)we... 透视好友(WEPOKER)wepoker有透视底牌吗(透视)一贯有挂(技巧教程)1、这是跨平台的we...